package com.alibaba.travel.article.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.alibaba.travel.common.utils.PageUtils;
import com.alibaba.travel.common.utils.Query;

import com.alibaba.travel.article.dao.ColumnArticleRelationDao;
import com.alibaba.travel.article.entity.ColumnArticleRelationEntity;
import com.alibaba.travel.article.service.ColumnArticleRelationService;


@Service("columnArticleRelationService")
public class ColumnArticleRelationServiceImpl extends ServiceImpl<ColumnArticleRelationDao, ColumnArticleRelationEntity> implements ColumnArticleRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ColumnArticleRelationEntity> page = this.page(
                new Query<ColumnArticleRelationEntity>().getPage(params),
                new QueryWrapper<ColumnArticleRelationEntity>()
        );

        return new PageUtils(page);
    }

}